﻿using System.Collections.Generic;
using TiaoTiaoCode.AutoUpdate.ClientCore.AutoUpdateEventArgs;
using TiaoTiaoCode.AutoUpdate.Common.Dtos;

namespace TiaoTiaoCode.AutoUpdate.ClientCore
{
    /// <summary>
    /// 获取到所有更新文件
    /// </summary>
    public delegate void FindAllFilesCompletedEventHandler(List<ProgrameFileDetailView> files);

    /// <summary>
    /// 文件开始下载
    /// </summary>
    /// <param name="args"></param>
    public delegate void FileDownloadingEventHandler(FileDownloadingEventArgs args);

    /// <summary>
    /// 文件下载结束
    /// </summary>
    /// <param name="args"></param>
    public delegate void FileDownloadCompletedEventHandler(FileDownloadCompletedEventArgs args);

    /// <summary>
    /// 全部文件下载完成
    /// </summary>
    public delegate void FileAllDownloadCompletedEventHandler();

    /// <summary>
    /// 异常事件
    /// </summary>
    public delegate void ExceptionEventHandler(ExceptionEventArgs args);
}
